/*
 * JPanelWizardClaseComplejaWelcome.java
 *
 * Created on 24-mar-2012, 19:23:59
 */
package com.ufps.cuatro.vistas.asistente.clase.compleja;

import com.ufps.cuatro.modelo.asistente.UtilAsistente;
import com.ufps.cuatro.modelo.representacion.ObjetoTipoDatoReflexion;
import com.ufps.cuatro.util.Representacion;

/**
 *
 * @author Catc
 */
public class JPanelWizardClaseComplejaWelcomeOld extends javax.swing.JPanel {
    private static final long serialVersionUID = -5476864291403161088L;
    
    private int modo = UtilAsistente.REPRESENTACION_CLASE_SALIDA;
    private ObjetoTipoDatoReflexion objTipoDato;

    /** Creates new form JPanelWizardClaseComplejaWelcome */
    public JPanelWizardClaseComplejaWelcomeOld(ObjetoTipoDatoReflexion objTipoDato) {
        initComponents();
        this.objTipoDato = objTipoDato;
        this.jLabelInfo.setText(Representacion.objPropiedadesRepresentacion.getProperty("Utileria.swing.wizard.clase.welcome.salida"));
        this.jLabelClase.setText(objTipoDato.getStrClassPath());
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        jLabel4 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jRadioButtonConstructor = new javax.swing.JRadioButton();
        jRadioButtonEntrada = new javax.swing.JRadioButton();
        jRadioButtonSalida = new javax.swing.JRadioButton();
        jLabelInfo = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabelClase = new javax.swing.JLabel();

        jLabel4.setBackground(new java.awt.Color(255, 255, 255));
        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/ufps/cuatro/resources/icono app x 48.png"))); // NOI18N
        jLabel4.setText("<html><b>Bienvenido al Asistente de Representación de Clases.</b><br> <p> Este asistente le permitirá generar Vistas (JPanel) por medio de las Propiedades que constituyen la Clase.</p></html>");
        jLabel4.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jLabel4.setName("jLabel4"); // NOI18N
        jLabel4.setOpaque(true);

        jLabel1.setText("Seleccione el Modo de Representación que se utilizará para generar la Interfaz Gráfica que soportará la Clase. ");
        jLabel1.setName("jLabel1"); // NOI18N

        buttonGroup1.add(jRadioButtonConstructor);
        jRadioButtonConstructor.setText("Representación por Constructor");
        jRadioButtonConstructor.setName("jRadioButtonConstructor"); // NOI18N
        jRadioButtonConstructor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButtonConstructorActionPerformed(evt);
            }
        });

        buttonGroup1.add(jRadioButtonEntrada);
        jRadioButtonEntrada.setText("Representación por Métodos de Entrada");
        jRadioButtonEntrada.setName("jRadioButtonEntrada"); // NOI18N
        jRadioButtonEntrada.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButtonEntradaActionPerformed(evt);
            }
        });

        buttonGroup1.add(jRadioButtonSalida);
        jRadioButtonSalida.setSelected(true);
        jRadioButtonSalida.setText("Representación por Métodos de Salida");
        jRadioButtonSalida.setName("jRadioButtonSalida"); // NOI18N
        jRadioButtonSalida.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButtonSalidaActionPerformed(evt);
            }
        });

        jLabelInfo.setBackground(new java.awt.Color(255, 255, 255));
        jLabelInfo.setText("<html><b>Bienvenido al Asistente de Representación de Clases.</b><br> <p> Este asistente le permitirá generar Vistas (JPanel) por medio de las Propiedades que constituyen la Clase.</p></html>");
        jLabelInfo.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jLabelInfo.setName("jLabelInfo"); // NOI18N

        jLabel2.setText("Clase:");
        jLabel2.setName("jLabel2"); // NOI18N

        jLabelClase.setBackground(new java.awt.Color(255, 255, 255));
        jLabelClase.setText("Información de la Clase");
        jLabelClase.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jLabelClase.setName("jLabelClase"); // NOI18N
        jLabelClase.setOpaque(true);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jRadioButtonConstructor, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 626, Short.MAX_VALUE)
                    .addComponent(jLabelInfo, javax.swing.GroupLayout.DEFAULT_SIZE, 626, Short.MAX_VALUE)
                    .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 626, Short.MAX_VALUE)
                    .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 626, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addComponent(jLabel2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelClase, javax.swing.GroupLayout.DEFAULT_SIZE, 590, Short.MAX_VALUE))
                    .addComponent(jRadioButtonEntrada, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 626, Short.MAX_VALUE)
                    .addComponent(jRadioButtonSalida, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 626, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(jLabelClase))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jRadioButtonConstructor)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jRadioButtonEntrada)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jRadioButtonSalida)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabelInfo)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    private void jRadioButtonConstructorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonConstructorActionPerformed
        if(this.jRadioButtonConstructor.isSelected()){
            this.jLabelInfo.setText(Representacion.objPropiedadesRepresentacion.getProperty("Utileria.swing.wizard.clase.welcome.constructor"));
            modo = UtilAsistente.REPRESENTACION_CLASE_CONSTRUCTOR;
        }
    }//GEN-LAST:event_jRadioButtonConstructorActionPerformed

    private void jRadioButtonEntradaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonEntradaActionPerformed
        if(this.jRadioButtonEntrada.isSelected()){
            this.jLabelInfo.setText(Representacion.objPropiedadesRepresentacion.getProperty("Utileria.swing.wizard.clase.welcome.entrada"));
            modo = UtilAsistente.REPRESENTACION_CLASE_ENTRADA;
        }
    }//GEN-LAST:event_jRadioButtonEntradaActionPerformed

    private void jRadioButtonSalidaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonSalidaActionPerformed
        if(this.jRadioButtonSalida.isSelected()){
            this.jLabelInfo.setText(Representacion.objPropiedadesRepresentacion.getProperty("Utileria.swing.wizard.clase.welcome.salida"));
            modo = UtilAsistente.REPRESENTACION_CLASE_SALIDA;
        }
    }//GEN-LAST:event_jRadioButtonSalidaActionPerformed

    public int getModo() {
        return modo;
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabelClase;
    private javax.swing.JLabel jLabelInfo;
    private javax.swing.JRadioButton jRadioButtonConstructor;
    private javax.swing.JRadioButton jRadioButtonEntrada;
    private javax.swing.JRadioButton jRadioButtonSalida;
    // End of variables declaration//GEN-END:variables
}
